#ifndef _OBJECT_H_
#define _OBJECT_H_

#include <vector>
#include <wx/string.h>
#include <wx/db.h>
#include <wx/dbtable.h>

using namespace std;

class Object
{
public:

	int ID;
	int sessionID;
	wxString name;

	static wxString tableName();
	static wxDbTable * defineColumns(
		wxDb * db,
		int & id, wxChar * name, int & sessionID);
	static bool createRecord(const Object & record);
	static bool updateRecord(const Object & record);
	static bool deleteRecord(const Object & record);
	static vector<Object> getFullList();
	static vector<Object> getList(const wxString & whereClause);
};

#endif